import re 

msg = "0 100 -100 +100 001 1.1 -1.1"
rest = re.findall(r'^[+]?\d*[1-9]\d*$',msg)
print(rest)

#带+号的正整数
rest = re.findall(r'[+](?<![.\d])\d+(?![.\d])',msg)
print(rest)

#负整数
rest = re.findall(r'-(?<![.\d])\d+(?![.\d])',msg)
print(rest)

#浮点数
rest = re.findall(r'-?\d+\.\d+',msg)
print(rest)
